package com.example.netactivity;

import android.content.Context;
import android.database.Cursor;
import android.database.sqlite.SQLiteDatabase;
import android.database.sqlite.SQLiteOpenHelper;

public class DBHelper extends SQLiteOpenHelper {
    private static final int VERSION = 1;
    private static final String DB_NAME = "myrate.db";
    public static final String TB_NAME = "tb_rates";

    public DBHelper(Context context, String name, SQLiteDatabase.CursorFactory factory, int version){
        super(context, name, factory, version);
    }
    public DBHelper(Context context){
        super(context,DB_NAME,null,VERSION);
    }
    @Override
    public void onCreate(SQLiteDatabase db){
        db.execSQL("CREATE TABLE"+TB_NAME+"(ID INTEGER PRIMARY KEY AUYOINCREMENT,CURNAME TEXT,CURRATE TEXT)");
    }
    @Override
    public  void onUpgrade(SQLiteDatabase arg0,int arg1,int arg2){
        //TODO Auto-generated method stub
    }

}
